// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'MEETPOL' 
0A95: enable_thread_saving 

:MEETPOL_D
wait 0 
0AB4: 0@ = var 130 
if 
  0@ == 1 
jf @MEETPOL_58 
7@ = 280 
8@ = 596 
6@ = 22 
17@ = 346 
20@ = 4 
jump @MEETPOL_2FE 

:MEETPOL_58
if 
  0@ == 2 
jf @MEETPOL_97 
7@ = 281 
8@ = 597 
6@ = 22 
17@ = 346 
20@ = 4 
jump @MEETPOL_2FE 

:MEETPOL_97
if 
  0@ == 3 
jf @MEETPOL_D6 
7@ = 282 
8@ = 598 
6@ = 22 
17@ = 346 
20@ = 4 
jump @MEETPOL_2FE 

:MEETPOL_D6
if 
  0@ == 4 
jf @MEETPOL_115 
7@ = 283 
8@ = 599 
6@ = 29 
17@ = 346 
20@ = 2 
jump @MEETPOL_2FE 

:MEETPOL_115
if 
  0@ == 5 
jf @MEETPOL_154 
7@ = 284 
8@ = 523 
6@ = 22 
17@ = 346 
20@ = 2 
jump @MEETPOL_2FE 

:MEETPOL_154
if 
  0@ == 6 
jf @MEETPOL_206 
0209: 18@ = random_int_in_ranges 1 3 
if 
  18@ == 3 
jf @MEETPOL_188 
18@ = 2 

:MEETPOL_188
if 
  18@ == 1 
jf @MEETPOL_1C7 
7@ = 285 
8@ = 427 
6@ = 29 
17@ = 353 
20@ = 4 
jump @MEETPOL_2FE 

:MEETPOL_1C7
if 
  18@ == 2 
jf @MEETPOL_206 
7@ = 285 
8@ = 601 
6@ = 29 
17@ = 353 
20@ = 2 
jump @MEETPOL_2FE 

:MEETPOL_206
if 
  0@ == 7 
jf @MEETPOL_245 
7@ = 286 
8@ = 490 
6@ = 29 
17@ = 353 
20@ = 4 
jump @MEETPOL_2FE 

:MEETPOL_245
if 
  0@ == 8 
jf @MEETPOL_2F7 
0209: 18@ = random_int_in_ranges 1 3 
if 
  18@ == 3 
jf @MEETPOL_279 
18@ = 2 

:MEETPOL_279
if 
  18@ == 1 
jf @MEETPOL_2B8 
7@ = 287 
8@ = 433 
6@ = 31 
17@ = 353 
20@ = 2 
jump @MEETPOL_2FE 

:MEETPOL_2B8
if 
  18@ == 2 
jf @MEETPOL_2F7 
7@ = 287 
8@ = 432 
6@ = 31 
17@ = 353 
20@ = 2 
jump @MEETPOL_2FE 

:MEETPOL_2F7
jump @MEETPOL_D 

:MEETPOL_2FE
Model.Load(7@)
Model.Load(17@)
Model.Load(8@)
038B: load_requested_models 

:MEETPOL_30F
wait 0 
if or
   not Model.Available(7@)
   not Model.Available(17@)
   not Model.Available(8@)
jf @MEETPOL_336 
end_thread 
jump @MEETPOL_30F 

:MEETPOL_336
wait 100 
0208: 21@ = random_float_in_ranges 30.0 80.0 
0208: 22@ = random_float_in_ranges -30.0 -80.0 
04C4: store_coords_to 11@ 12@ 13@ from_actor $PLAYER_ACTOR with_offset 21@ 22@ 0.0 
04D3: get_nearest_car_path_coords_from 11@ 12@ 13@ type 0 store_to 14@ 15@ 16@ 
1@ = Car.Create(8@, 14@, 15@, 16@)
Car.Angle(1@) = 184.7214
Car.SetMaxSpeed(1@, 253.0)
00AE: set_car 1@ traffic_behaviour_to 2 
053F: set_car 1@ tires_vulnerability 0 
Car.SetImmunities(1@, 0, 0, 0, 0, 0)
9@ = Marker.CreateAboveCar(1@)
0587: enable_car 1@ validate_position 0 
072F: enable_car 1@ stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC 
if 
  20@ == 2 
jf @MEETPOL_422 
5@ = Actor.CreateAsDriver(Cop, 7@, 1@)
2@ = Actor.CreateAsPassenger(Cop, 7@, 1@, 1)
jump @MEETPOL_45C 

:MEETPOL_422
5@ = Actor.CreateAsDriver(Cop, 7@, 1@)
2@ = Actor.CreateAsPassenger(Cop, 7@, 1@, 1)
3@ = Actor.CreateAsPassenger(Cop, 7@, 1@, 2)
4@ = Actor.CreateAsPassenger(Cop, 7@, 1@, 3)

:MEETPOL_45C
0397: enable_car 1@ siren 1 
if 
0AB6: store_target_marker_coords_to 11@ 12@ 13@ // IF and SET 
jf @MEETPOL_48E 
02C2: car 1@ drive_to 11@ 12@ 13@ 
jump @MEETPOL_495 

:MEETPOL_48E
Car.SetDriverBehaviour(1@, DriveToPlayer)

:MEETPOL_495
wait 0 
if 
  20@ == 2 
jf @MEETPOL_4CE 
if or
   Actor.Dead(5@)
   Actor.Dead(2@)
jf @MEETPOL_4C7 
jump @MEETPOL_7BA 

:MEETPOL_4C7
jump @MEETPOL_4F4 

:MEETPOL_4CE
if or
   Actor.Dead(5@)
   Actor.Dead(2@)
   Actor.Dead(3@)
   Actor.Dead(4@)
jf @MEETPOL_4F4 
jump @MEETPOL_7BA 

:MEETPOL_4F4
if or
   Actor.Dead($PLAYER_ACTOR)
02BF:   car 1@ sunk 
   Car.Wrecked(1@)
jf @MEETPOL_51C 
jump @MEETPOL_7BA 
jump @MEETPOL_56E 

:MEETPOL_51C
if 
00F4:   actor 5@ near_actor $PLAYER_ACTOR radius 10.0 10.0 0.0 in_car 
jf @MEETPOL_545 
jump @MEETPOL_575 

:MEETPOL_545
if 
01AD:   car 1@ sphere 0 near_point 11@ 12@ radius 10.0 10.0 
jf @MEETPOL_56E 
jump @MEETPOL_575 

:MEETPOL_56E
jump @MEETPOL_495 

:MEETPOL_575
Marker.Disable(9@)
Car.SetSpeedInstantly(1@, 0)
0397: enable_car 1@ siren 0 
if 
  20@ == 2 
jf @MEETPOL_62C 
05CD: AS_actor 5@ exit_car 1@ 
05CD: AS_actor 2@ exit_car 1@ 
Actor.GiveWeaponAndAmmo(5@, 6@, 9999)
Actor.GiveWeaponAndAmmo(2@, 6@, 9999)
060B: set_actor 5@ decision_maker_to 3 
060B: set_actor 2@ decision_maker_to 3 
10@ = 1 

:MEETPOL_5D5
if and
056D:   actor 5@ defined 
056D:   actor 2@ defined 
jf @MEETPOL_610 
if 
   not 10@ == 6 
jf @MEETPOL_610 
077A: set_actor 5@ acquaintance 4 to_actors_pedtype 10@ // see ped.dat 
077A: set_actor 2@ acquaintance 4 to_actors_pedtype 10@ // see ped.dat 

:MEETPOL_610
10@ += 1 
  10@ > 22 
jf @MEETPOL_5D5 
jump @MEETPOL_709 

:MEETPOL_62C
05CD: AS_actor 5@ exit_car 1@ 
05CD: AS_actor 2@ exit_car 1@ 
05CD: AS_actor 3@ exit_car 1@ 
05CD: AS_actor 4@ exit_car 1@ 
Actor.GiveWeaponAndAmmo(5@, 6@, 9999)
Actor.GiveWeaponAndAmmo(2@, 6@, 9999)
Actor.GiveWeaponAndAmmo(3@, 6@, 9999)
Actor.GiveWeaponAndAmmo(4@, 6@, 9999)
060B: set_actor 5@ decision_maker_to 3 
060B: set_actor 2@ decision_maker_to 3 
060B: set_actor 3@ decision_maker_to 3 
060B: set_actor 4@ decision_maker_to 3 
10@ = 1 

:MEETPOL_69B
if and
056D:   actor 5@ defined 
056D:   actor 2@ defined 
056D:   actor 3@ defined 
056D:   actor 4@ defined 
jf @MEETPOL_6F4 
if 
   not 10@ == 6 
jf @MEETPOL_6F4 
077A: set_actor 5@ acquaintance 4 to_actors_pedtype 10@ // see ped.dat 
077A: set_actor 2@ acquaintance 4 to_actors_pedtype 10@ // see ped.dat 
077A: set_actor 3@ acquaintance 4 to_actors_pedtype 10@ // see ped.dat 
077A: set_actor 4@ acquaintance 4 to_actors_pedtype 10@ // see ped.dat 

:MEETPOL_6F4
10@ += 1 
  10@ > 22 
jf @MEETPOL_69B 

:MEETPOL_709
04C4: store_coords_to 11@ 12@ 13@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 

:MEETPOL_726
wait 0 
if 
  20@ == 2 
jf @MEETPOL_75F 
if and
   Actor.Dead(5@)
   Actor.Dead(2@)
jf @MEETPOL_758 
jump @MEETPOL_7BA 

:MEETPOL_758
jump @MEETPOL_785 

:MEETPOL_75F
if and
   Actor.Dead(5@)
   Actor.Dead(2@)
   Actor.Dead(3@)
   Actor.Dead(4@)
jf @MEETPOL_785 
jump @MEETPOL_7BA 

:MEETPOL_785
if or
80EC:   not actor $PLAYER_ACTOR sphere 0 near_point 11@ 12@ radius 200.0 200.0 
   Actor.Dead($PLAYER_ACTOR)
jf @MEETPOL_7B3 
jump @MEETPOL_7BA 

:MEETPOL_7B3
jump @MEETPOL_726 

:MEETPOL_7BA
if 
  20@ == 2 
jf @MEETPOL_7E2 
Actor.RemoveReferences(5@)
Actor.RemoveReferences(2@)
Car.RemoveReferences(1@)
jump @MEETPOL_7FB 

:MEETPOL_7E2
Actor.RemoveReferences(5@)
Actor.RemoveReferences(2@)
Actor.RemoveReferences(3@)
Actor.RemoveReferences(4@)
Car.RemoveReferences(1@)

:MEETPOL_7FB
end_thread 
